package com.mark.design.principle.openclose;

import lombok.extern.slf4j.Slf4j;

/**
 * author:Mark
 * date:2018/8/19  21:57
 */
@Slf4j
public class Test {
    public static void main(String[] args) {
        ICourse iCourse = new JavaDisCountCourse(96,"java开发",348d);
        JavaDisCountCourse javaDisCountCourse = (JavaDisCountCourse) iCourse;
        log.info("课程IDL{}，课程名称{},价格{},原价{}",
                javaDisCountCourse.getId(),
                javaDisCountCourse.getName(),
                javaDisCountCourse.getPrice(),
                javaDisCountCourse.getOriginPrice());
    }
}
